import numpy as np
from matplotlib.pyplot import plot,show
vals=np.random.binomial(9,0.5,size=1000)
counter=[0,0,0,0,0,0,0,0,0,0]
for i in range(10):	
	coun= np.where(vals==i)[0].size
	counter[i]=coun
plot(counter)
show()

